pub use gix_testtools::Result;

mod index_as_worktree;
mod index_as_worktree_with_renames;

mod stack;

pub fn fixture_path(name: &str) -> std::path::PathBuf {
    let dir = gix_testtools::scripted_fixture_read_only_standalone(std::path::Path::new(name).with_extension("sh"))
        .expect("script works");
    dir
}

fn hex_to_id(hex: &str) -> gix_hash::ObjectId {
    gix_hash::ObjectId::from_hex(hex.as_bytes()).expect("40 bytes hex")
}
